// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import $ from 'jquery';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from '@/api/axios.js'
import Global from '@/components/Global.vue'
import popup from '@/popup/popup.js'
//引入echart
import echarts from 'echarts'
//将echarts引入到vue的原型中
Vue.prototype.$popup=popup;
Vue.prototype.$echarts = echarts
Vue.prototype.$axios = axios
Vue.prototype.$global = Global
Vue.config.productionTip = false
Vue.use(ElementUI);

router.beforeEach((to,from,next)=>{	clearInterval(window.getGpsInterval);	next();	})


/* eslint-disable no-new */
new Vue({
	el: '#app',
	router,
	components: {
		App
	},
	template: '<App/>'
})
